package com.gh.client;

import com.gh.client.fallback.CoreUserInfoClientFallback;
import com.gh.common.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author Eric
 * @Date 2021/9/27 22:15
 * @Version 1.0
 */
@FeignClient(value = "service-core",fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoClient {

    @GetMapping("/api/core/user-info/checkMobile/{mobile}")
    R checkMobile(@PathVariable String mobile);
}
